<script type="text/javascript" src="<?php echo $this->site['base_url']?>themes/plugins/fckeditor/fckeditor.js"></script>
<form name="frm" action="<?php echo $this->site['base_url']?>admin_faqs/save" method="post">
<table class="title" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('faqs_lang.tt_page')?></td>
    <td class="title_button">
    <button type="button" name="btn_back" class="button back" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_faqs/search'">
    <span><?php echo Kohana::lang('admin_lang.btn_back')?></span>
    </button>
    &nbsp;
    <button type="reset" name="btn_reset" class="button reset"/>
    <span><?php echo Kohana::lang('admin_lang.btn_reset')?></span>
    </button>
    &nbsp;
    <button type="submit" name="btn_save" class="button save">
    <span><?php echo Kohana::lang('admin_lang.btn_save')?></span>
    </button>
    </td>
  </tr>
</table>
<table class="form" cellspacing="0" cellpadding="5" border="0">
  	<?php for($i=0; $i<count($list_language); $i++){ ?>
    <tr>
    <td width="10%" valign="top" nowrap="nowrap"><?php echo Kohana::lang('faqs_lang.lbl_title')?>: <font color="#FF0000">*</font> [<?php echo $list_language[$i]['languages_name']?>]</td>
    <td><div style="float:left;">
        <input type="text" value="<?php if (isset($mr[$i]['faqs_title'])) echo $mr[$i]['faqs_title']; ?>" id="txt_title<?php echo $list_language[$i]['languages_id']?>" name="txt_title<?php echo $list_language[$i]['languages_id']?>" size="30"/>
        <input type="hidden" id="hd_old_image" name="hd_old_image" value="<?php if (isset($mr[0]['categories_image'])) echo $mr[0]['categories_image']; ?>" />
      </div>
      <div style="float:left;padding-left:10px;"> <img src="<?php echo $this->site['base_url']?>uploads/language/<?php echo $list_language[$i]['languages_image']?>" width="20" id="img_language1" name="img_language1" height="20" /> </div>
    </td>
    </tr>
    <?php }?>
    <?php for($i=0; $i<count($list_language); $i++){ ?>
    <tr>
      <td valign="top" nowrap="nowrap"><?php echo Kohana::lang('article_lang.lbl_content')?>: <font color="#FF0000">*</font> [<?php echo $list_language[$i]['languages_name']?>]</td>
      <td><img src="<?php echo $this->site['base_url']?>uploads/language/<?php echo $list_language[$i]['languages_image']?>" width="20" id="img_language1" name="img_language1" height="20" /></td>
    </tr>
    <tr>
    	<td colspan="2" valign="top"><textarea class="ckeditor" id="txt_content<?php echo $list_language[$i]['languages_id']?>" name="txt_content<?php echo $list_language[$i]['languages_id']?>" cols="50" style="width:800px;height:100px"><?php if (isset($mr[$i]['faqs_content'])) echo $mr[$i]['faqs_content']; ?></textarea>
    </td>
    </tr>
    <?php }?>
    <tr>
    <td nowrap="nowrap"><?php echo Kohana::lang('admin_lang.lbl_order')?>:</td>
    <td><input name="txt_sort_order" class="text_number" size="10" value="<?php if (isset($mr[0]['faqs_sort_order'])){ echo $mr[0]['faqs_sort_order']; } else {echo '0'; }?>" /></td>
  	</tr>
	<tr>
	  	<td><?php echo Kohana::lang('admin_lang.lbl_status')?>:</td>
        <td>
        <select name="sel_status" id="sel_status">
            <option value="0"><?php echo Kohana::lang('admin_lang.lbl_inactive')?></option>	
          	<option value="1" <?php if(isset($mr[0]['faqs_status']) && $mr[0]['faqs_status']==1) echo 'selected'?> ><?php echo Kohana::lang('admin_lang.lbl_active')?></option>
        </select>
        </td>
	</tr>
    <tr>
      	<td>&nbsp;</td>
		<td><input name="hd_id" type="hidden" id="hd_id" value="<?php echo isset($mr[0]['faqs_id'])?$mr[0]['faqs_id']:''?>"/></td>
	</tr>
</table>
</form>
<script language="javascript" src="<?php echo $this->site['base_url']?>/themes/plugins/ckeditor/ckeditor.js"></script>